package com.ljy.service;

import com.ljy.dto.LeaseOrdersDTO;
import com.ljy.dto.LeaseOrdersPageDTO;
import com.ljy.dto.OrdersPaymentDTO;
import com.ljy.dto.OrdersRefundDTO;
import com.ljy.entity.LeaseOrders;
import com.ljy.result.PageResult;
import com.ljy.vo.LeaseOrdersDetailVO;
import com.ljy.vo.LeaseOrdersSubmitVO;
import com.ljy.vo.LeaseOrdersVO;
import com.ljy.vo.OrdersPaymentVO;

import java.util.List;

public interface LeaseOrdersService {
    LeaseOrdersSubmitVO submit(LeaseOrdersDTO dto);

    void paySuccess(String orderNum);
    OrdersPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO);

    List<LeaseOrdersVO> list();

    LeaseOrders getOrdersById(Integer id);

    PageResult<LeaseOrders> page(LeaseOrdersPageDTO dto);

    void changeStatus(Short status, Integer orderId);

    void cancelOrRefund(OrdersRefundDTO dto);

}
